//Liste des touches
call compile preprocessFileLineNumbers "fonction_player.sqf";

waituntil {!(IsNull (findDisplay 46))};
_keyDown_KP_1 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 79) && ([player] call acre_api_fnc_hasRadio)) then {[player,1] call switch_radio_chan;}"];

_keyDown_KP_2 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 80) && ([player] call acre_api_fnc_hasRadio)) then {[player,2] call switch_radio_chan;}"];

_keyDown_KP_3 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 81) && ([player] call acre_api_fnc_hasRadio)) then {[player,3] call switch_radio_chan;}"];

_keyDown_KP_4 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 75) && ([player] call acre_api_fnc_hasRadio)) then {[player,4] call switch_radio_chan;}"];

_keyDown_KP_5 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 76) && ([player] call acre_api_fnc_hasRadio)) then {[player,5] call switch_radio_chan;}"];

_keyDown_KP_6 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 77) && ([player] call acre_api_fnc_hasRadio)) then {[player,6] call switch_radio_chan;}"];

_keyDown_KP_7 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 71) && ([player] call acre_api_fnc_hasRadio)) then {[player,7] call switch_radio_chan;}"];

_keyDown_KP_8 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 72) && ([player] call acre_api_fnc_hasRadio)) then {[player,8] call switch_radio_chan;}"];

_keyDown_KP_9 = (findDisplay 46) displayAddEventHandler ["KeyDown", "_bool = if ((_this select 1 == 73) && ([player] call acre_api_fnc_hasRadio)) then {[player,9] call switch_radio_chan;}"];


